home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 February / EnigmA AMIGA RUN 15 (1997)(G.R. Edizioni)(IT)[!][issue 1997-02][PLANET CD V].iso / enigma / earcd / utility / utilmisc / midtfrnt.rdm < prev    next >
Text File  |  1997-01-18  |  4KB  |  92 lines

  1. Short: Replaces ClickToFront w/middle button.
  2.  
  3.                     MidToFront
  4.                        v2.0
  5.                  Copyright © 1997
  6.                     Jack Perry
  7.  
  8. LEGAL STUFF:
  9.     The author cannot be held responsible for any damage done to
  10. your computer system, whether through his negligence or yours.  This
  11. software is Freely Redistributable.
  12.  
  13. REQUIREMENTS:
  14.     An Amiga with WB 2.04+.
  15.  
  16. WHAT IT IS:
  17.     Have you ever wanted to bring a window up to the front of
  18. the screen, but other windows were in the way?  MidToFront is my
  19. way of getting around that.  It is a Commodity which brings the
  20. window beneath the pointer to the front of the screen using the
  21. middle mouse button.
  22.     Version 2.0 is significantly improved over the previous
  23. versions; instead of a two- or three-hour hack, it took me all day.
  24. Besides rewriting it from scratch in SAS/C 6.51 (it used to be in
  25. Benchmark Modula-2), I added an options window and Tooltypes.  I
  26. learned a lot about programming today. :)
  27.  
  28. WHAT'S INCLUDED:
  29.     I included four versions of the executable for the processors
  30. available: 68000, 68020, 68030, and 68040.  Install whichever one you
  31. prefer.
  32.  
  33. HOW IT WORKS:
  34.     To start from the Workbench, double-click on the icon.
  35.     To start from a CLI, type "[path]MidToFront".
  36.     Or just put it in your WBStartup drawer like I do, and it takes
  37. care of itself.
  38.  
  39.     Once it's working, IF you have a three-button mouse, you can click
  40. on any window with the middle button, and it will come to the front of the
  41. screen.
  42.     Backdrop windows are excluded from this, of course... :)
  43.  
  44. SPECIAL OPTIONS:
  45.     There are the standard AmigaDOS Tooltypes which seemed relevant:
  46. CX_POPUP, CX_PRIORITY, CX_POPKEY, DONOTWAIT.  MidToFront likes its own
  47. tooltypes as well:
  48.     ACTIVATE: If set to YES, the window will not only be brought to
  49.         the front, but activated (default is YES).
  50.     PUSHBACK: If set to YES, and the window under the pointer is
  51.         already in front, it will be pushed to the back (default
  52.         is NO; see TROUBLESHOOTING below).
  53.  
  54. TROUBLESHOOTING:
  55.     I'm afraid this simply won't work without WB 2.x+.  On the other
  56. hand, it works very nicely with WB 2.x+.
  57.     There appears to be a bug in AmigaDOS; Commodities refuses to
  58. notify me of the middle mouse button unless I place it in the timer class
  59. (i.e., "timer midbutton" as opposed to "rawmouse midbutton" which would
  60. make more sense IMHO).  I've tried every other combination I could think
  61. of.  I know someone else emailed me once asking how *I* managed to get
  62. Commodities to recognize the middle mouse button, so it's not just me!
  63. :)  Because of the bizarre behaviour, there are two side effects:
  64.     (a) You might have to do more than just click the mouse button (i.e.,
  65. hold it down for a moment, but not too long).
  66.     (b) If you have set PUSHBACK=YES, and you hold the button a while,
  67. you get to see all the windows under the mousebutton coming flying by.
  68. This can be amusing, but not for very long.
  69.     Because of this, I don't like PUSHBACK as much as I thought I might.
  70. If anyone knows how to get around this, please email me ASAP.
  71.  
  72. KNOWN BUGS:
  73. As far as I can tell, there are no bugs in MY code.  If you find any, email
  74. me.
  75.  
  76. SPECIAL THANKS:
  77. I'd like to thank the designers of AmigaDOS.  I really, really like this
  78. system; it's fun to use and to program.  If you can ever add crash pro-
  79. tection and optional memory defragmentation, I will be in heaven.
  80. I'd also like to thank Tom Ekstrom for Iconographix.  It's far superior
  81. to the rest, mostly in that even an artistic nincompoop like myself can
  82. make icons in its style.
  83.  
  84. BUG REPORTS, PROGRAMMING TIPS, AND COMMENTS:
  85.     Jack Perry
  86.     jperry6@ix.netcom.com
  87. If you can give me a hint on a better way to have written this, please do
  88. so.  I'm not a very good programmer, but I enjoy little things like this.
  89.  
  90. P.S.- You may notice that the program calls its author John Perry.  We're
  91. the same dude.
  92.